function out = fillRandom( source, m , value )

p=randperm(numel(source));

out = source;
for i = 1:m
    out(p(i)) = value;
end

end

